﻿#include "filepaths.h"

#include <QCoreApplication>
#include <QStandardPaths>

namespace Common {

	QString FilePaths::appPath()
	{
		return QCoreApplication::applicationDirPath();
	}

	QString FilePaths::systemHomePath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::HomeLocation).first();
	}

	QString FilePaths::systemFontsPath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::FontsLocation).first();
	}

	QString FilePaths::systemDesktopPath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::DesktopLocation).first();
	}

	QString FilePaths::systemDocumentsPath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation).first();
	}

	QString FilePaths::systemMusicPath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::MusicLocation).first();
	}

	QString FilePaths::systemPicturesPath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::PicturesLocation).first();
	}

	QString FilePaths::systemTempPath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::TempLocation).first();
	}

	QString FilePaths::systemCachePath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::CacheLocation).first();
	}

	QString FilePaths::systemDownloadPath()
	{
		return QStandardPaths::standardLocations(QStandardPaths::DownloadLocation).first();
	}

}// namespace Common
